package com.pig4cloud.pig.demo.api.feign;

import org.springframework.cloud.openfeign.FallbackFactory;

public class RemoteDemoServiceFallbackFactory implements FallbackFactory<RemoteDemoService> {
	@Override
	public RemoteDemoServiceFallbackImpl create(Throwable throwable) {
		RemoteDemoServiceFallbackImpl remotedemoServiceFallback = new RemoteDemoServiceFallbackImpl();
		RemoteDemoServiceFallbackImpl.setCause(throwable);
		return remotedemoServiceFallback;
	}
}